package com.jnshu.service;

import com.jnshu.dto.course.CourseDto;
import com.jnshu.pojo.Collect;
import com.jnshu.pojo.Course;
import com.jnshu.tools.resultUtils.ResultBean;

import java.util.List;

/**
 * @ClassName FrontCourseService
 * @Descrintion
 * @Author bd
 * @Date 2019/8/7 15:02
 * @Version 1.0
 **/
public interface FrontCourseService {

    //视频、文章列表
    ResultBean uSelectList(CourseDto course, int pageSize, int pageNum,Long Userid);

    //查看文章
    ResultBean selectByPrimaryKey(long id,Long Userid);

    //查看视频
    ResultBean selectByPrimaryKeyVideo(long id,Long Userid);

    //收藏
    ResultBean insert(Integer classify,Long courseId,Long Userid);

    //收藏状态
    ResultBean selectStatus( Long courseId,Long Userid);

    //取消收藏状态
    ResultBean deleteStatus(Long courseId,Long Userid);

    //获取历史记录
    ResultBean getHistory(Integer classify,String Userid);

    //删除历史记录
    ResultBean deleteHistory(Integer classify,String Userid);
}
